package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.PayRoll;
import cn.wolfcode.crm.query.EmployeeQueryObject;
import cn.wolfcode.crm.query.PayRollQueryObject;
import cn.wolfcode.crm.util.PageResult;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * Created by Administrator on 2018/3/24.
 */
public interface IPayRollService {
    int deleteByPrimaryKey(Long id);

    int insert(PayRoll record);

    PayRoll selectByPrimaryKey(Long id);

    List<PayRoll> selectAll();

    int updateByPrimaryKey(PayRoll record);

    PageResult query(PayRollQueryObject qo);

    void onState(Long id);

    void importXls(MultipartFile file, HttpServletResponse response) throws Exception;

    //获取导入模板
    Workbook getImportXlsMode();
    /**
     * 根据qo条件在实现类中将xls查询返回
     * @param qo
     * @return
     */
    Workbook exportXls(PayRollQueryObject qo);
}
